﻿namespace AnyOffice.Model
{
    using System;

    public class AttendDutyData
    {
        protected int _dutyId = -1;
        protected int _registerFlag;
        protected string _registerIp = string.Empty;
        protected DateTime _registerTime = DateTime.Now;
        protected int _registerType;
        protected object _remark;
        protected string _userId = string.Empty;

        public int DutyId
        {
            get
            {
                return this._dutyId;
            }
            set
            {
                this._dutyId = value;
            }
        }

        public int RegisterFlag
        {
            get
            {
                return this._registerFlag;
            }
            set
            {
                this._registerFlag = value;
            }
        }

        public string RegisterIp
        {
            get
            {
                return this._registerIp;
            }
            set
            {
                this._registerIp = value;
            }
        }

        public DateTime RegisterTime
        {
            get
            {
                return this._registerTime;
            }
            set
            {
                this._registerTime = value;
            }
        }

        public int RegisterType
        {
            get
            {
                return this._registerType;
            }
            set
            {
                this._registerType = value;
            }
        }

        public string Remark
        {
            get
            {
                return (string) this._remark;
            }
            set
            {
                this._remark = value;
            }
        }

        public bool RemarkIsNull
        {
            get
            {
                return (this._remark == null);
            }
            set
            {
                if (value)
                {
                    this._remark = null;
                }
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }
    }
}

